{extend name="AdminController/index" /}
{block name="main"}
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
<form action="{:url('update')}" method="post" enctype="multipart/form-data">
    <div class="form-group">
      <label for="disabledTextInput">ID(不可更改)</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="UserName" name="aid" disabled value="{$data.id}">
      <input type="hidden" name="id" value="{$data.id}">
    </div>

    <div class="form-group">
        <label class="disabledTextInput">照片</label>
        <img src="/uploads/{$imgs}" width="200">
        <input type="file" class="btn btn-default" title="添加" name="face" >
    </div>
    <div class="form-group">
        <label for="disabledTextInput">演员名</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="name" name="name" value="{$data.name}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">地区</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="country" name="country" value="{$data.country}">
    </div>

    <div class="form-group">
        <label for="disabledTextInput">简介</label>
        <input type="text" id="disabledTextInput" class="form-control" placeholder="describe" name="describe" value="{$data.describe}">
    </div>
    <div class="form-group">
        <label for="disabledTextInput">出生日期</label>
        <input type="date" id="disabledTextInput" class="form-control" placeholder="year" name="ayear" value="{$data.ayear}">
    </div>
    <div class="form-group">
        <label class="control-label">性别</label>
        <select class="form-control" name="sex">
            <option value="1" {$data.sex == 1?'selected':''}>男</option>
            <option value="0" {$data.sex == 0?'selected':''}>女</option>
        </select>
    </div>
    
    <button type="submit" class="btn btn-success">提交</button>
</form>
    </div>
</div>


{/block}

